package com.vcredit.creditcat.dto.creditrepository;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

public class AuthItemDto implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String name;
	private String desc;
	private String iconUrl;
	/**
	 * 0 未完成 1已完成 2审核中
	 */
	private int isFinish;
	private String frontId;
	@JsonInclude(Include.NON_NULL)
	private Integer promotionScore;
	@JsonIgnore
	private int itemSort;
	/**
	 * 1:用户查看状态，重置为0
	 */
	@JsonInclude(Include.NON_NULL)
	private Integer flag; 

	public AuthItemDto() {
		super();
	}

	public AuthItemDto(String name, String desc, String iconUrl, int isFinish, String frontId, Integer promotionScore, Integer itemSort) {
		super();
		this.name = name;
		this.desc = desc;
		this.iconUrl = iconUrl;
		this.isFinish = isFinish;
		this.frontId = frontId;
		this.promotionScore = promotionScore;
		this.itemSort = itemSort;
	}

	public AuthItemDto(String name, String desc, String iconUrl) {
		super();
		this.name = name;
		this.desc = desc;
		this.iconUrl = iconUrl;
	}
	
	public AuthItemDto(String name, String desc, String iconUrl,int isFinish) {
		super();
		this.name = name;
		this.desc = desc;
		this.iconUrl = iconUrl;
		this.isFinish = isFinish;
	}
	
	public AuthItemDto(String name, String desc, String iconUrl, int isFinish,
			String frontId) {
		super();
		this.name = name;
		this.desc = desc;
		this.iconUrl = iconUrl;
		this.isFinish = isFinish;
		this.frontId = frontId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getIconUrl() {
		return iconUrl;
	}

	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}

	public int getIsFinish() {
		return isFinish;
	}

	public void setIsFinish(int isFinish) {
		this.isFinish = isFinish;
	}

	public String getFrontId() {
		return frontId;
	}

	public void setFrontId(String frontId) {
		this.frontId = frontId;
	}

	public int getItemSort() {
		return itemSort;
	}

	public void setItemSort(int itemSort) {
		this.itemSort = itemSort;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Integer getPromotionScore() {
		return promotionScore;
	}

	public void setPromotionScore(Integer promotionScore) {
		this.promotionScore = promotionScore;
	}
}